package com.zsc.wxm.ysh.anjo.house.feign;

import com.zsc.wxm.ysh.anjo.house.feign.fallback.EsServiceImpl;
import com.zsc.wxm.ysh.anjo.result.Result;
import com.zsc.wxm.ysh.anjo.service.base.model.es.vo.EsDataVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/2/15 13:03
 */
@FeignClient(value = "anjo-es-service", fallback = EsServiceImpl.class)
public interface EsService {

    /**
     * 上传房源数据到es中
     *
     * @param list
     * @return
     */
    @PostMapping("/es/upload-es-data")
    Result uploadEsData(@RequestBody List<EsDataVO> list);
}
